Robot and robot system

ABSTRACT

Provided is a robot including: a wrist unit that has a tool attached to a distal end face thereof and that changes the orientation of the tool, the tool performing work on a work target device secured to an installation surface; and a movable unit that changes the three-dimensional position of the wrist unit. The movable unit includes an arm that has a longitudinal axis and the wrist unit is attached to the distal end thereof, and a visual sensor that has a field of view oriented in a direction intersecting the longitudinal axis of the arm is attached to the a position closer to the base end than the distal end face of the wrist unit is.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based on Japanese Patent Application No.2017-227419, the contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present invention relates to a robot and a robot system.

BACKGROUND ART

In a known robot system in the related art in which workpieces aresupplied to and extracted from a machining apparatus by a robot, even ifthe robot is moved, and, as a result, the relative positionalrelationship between the machining apparatus and the robot changes, therelative positional relationship is measured by capturing an image of avisual target provided on the outer surface of the machining apparatuswith a camera provided on the distal end of a robot arm, and theoperating position of the robot is compensated on the basis of themeasured relative positional relationship (for example, see PatentLiterature Japanese Unexamined Patent Application, Publication No. Hei11-58273 and Japanese Unexamined Patent Application, Publication No. Sho62-54115).

SUMMARY OF INVENTION

An aspect of the present invention provides a robot including: a wristunit that has a tool attached to a distal end face thereof and thatchanges the orientation of the tool, the tool performing work on a worktarget device secured to an installation surface; and a movable unitthat changes the three-dimensional position of the wrist unit. Themovable unit includes an arm that has a longitudinal axis and the wristunit is attached to the distal end thereof. A visual sensor that has afield of view oriented in a direction intersecting the longitudinal axisof the arm is attached to a position closer to the base end than thedistal end face of the wrist unit is.

Another aspect of the present invention is a robot system including: awork target device secured to an installation surface; any one of theabove-described robots that performs work on the work target device; anda compensating unit that compensates the operating position of the roboton the basis of the relative positional relationship between the robotand the work target device measured by capturing, with the visualsensor, an image of a visual target provided at a position where therelative positional relationship with respect to the work target deviceis predetermined.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram showing the overall configuration of a robot systemaccording to an embodiment of the present invention.

FIG. 2 is a side view showing an example of a robot according to theembodiment of the present invention provided in the robot system in FIG.1.

FIG. 3 is a plan view of the robot in FIG. 2.

FIG. 4 is a plan view showing a state in which the robot in FIG. 2 ispositioned with respect to a machining apparatus.

FIG. 5 is a plan view showing a state in which the robot in FIG. 2 isrepositioned with respect to the machining apparatus after being moved.

FIG. 6 is a plan view showing a state in which a first arm and a secondarm of the robot in FIG. 2 are positioned so as to be substantiallyparallel to the front side of the machining apparatus.

FIG. 7 is a flowchart for explaining the operation of the robot systemin FIG. 1.

DESCRIPTION OF EMBODIMENTS

A robot 3 and a robot system 1 according to an embodiment of the presentinvention will be described below with reference to the drawings.

As shown in FIG. 1, the robot system 1 according to this embodimentincludes a machining apparatus (work target device) 2 for cutting aworkpiece, the robot 3 that supplies and extracts the workpiece to andfrom the machining apparatus 2, and a control unit 4 that controls therobot 3. The control unit 4 includes a compensating unit (not shown,described below) therein.

The machining apparatus 2 is secured to the floor surface (installationsurface) and performs, with a tool attached to a main shaft, cutting oranother operation on a workpiece (not shown) supplied by the robot 3.

Visual targets 5 are provided at, for example, three positions on theouter surface facing the robot 3 (i.e., the front side), among the outersurfaces of the machining apparatus 2. The visual targets 5 may be, forexample, marks, such as circles, whose geometric center position orbrightness center position can be accurately detected when an imagethereof is captured by a visual sensor 16 (described below). The visualtargets 5 are fixed to the outer surface of the machining apparatus 2such that the center positions thereof precisely coincide with knowncoordinate positions.

The robot 3 includes a dolly (truck) 6 that can travel on the floorsurface in any direction, a movable unit 7 mounted on the dolly 6, and awrist unit 8 attached to the distal end of the movable unit 7.

As shown in FIGS. 2 and 3, the movable unit 7 includes a base 9 fixed tothe dolly 6, a swivel body 10 that is supported so as to be rotatableabout a vertical first axis A with respect to the base 9, a first arm(arm) 11 that is supported so as to be rotatable about a horizontalsecond axis B with respect to the swivel body 10, and a second arm (arm)12 that is supported at the distal end of the first arm 11 so as to berotatable about a horizontal third axis C.

The wrist unit 8 includes a first wrist shaft 13 that is attached to thedistal end of the second arm 12 and that is supported so as to berotatable about a fourth axis D located along a plane perpendicular tothe third axis C, a second wrist shaft 14 that is supported so as to berotatable about a fifth axis E perpendicular to the fourth axis D, and athird wrist shaft 15 that is supported so as to be rotatable about asixth axis F perpendicular to the fifth axis E. A distal end face 15 athat is rotated about the sixth axis F is provided at the distal end ofthe third wrist shaft 15, and a hand (not shown) for gripping aworkpiece is attached to the distal end face 15 a.

The robot 3 according to this embodiment includes a camera (visualsensor) 16 attached to the second arm 12, which is located closer to thebase end than the distal end face 15 a is. The camera 16 is disposedsuch that the field of view thereof is oriented in a direction parallelto a plane substantially perpendicular to the fourth axis D, which isthe longitudinal axis of the second arm 12.

The compensating unit processes the image of the visual targets 5captured by the camera 16 to detect the center positions of the visualtargets 5 and measures the relative positional relationship between therobot 3 and the machining apparatus 2 on the basis of the detectedcenter positions.

The compensating unit compensates, on the basis of the measured relativepositional relationship, the preliminarily taught or programmed positionwhere the robot 3 performs workpiece supplying and extractingoperations. Reference sign 17 in FIG. 2 is a teaching control panel.

The operation of the thus-configured robot 3 and robot system 1according to this embodiment will be described below.

As shown in FIG. 4, in the robot system 1 according to this embodiment,in a state in which the robot 3 is positioned at a predeterminedposition with respect to the machining apparatus 2, a teaching operationis performed on the robot 3, and a teaching program, in which the robot3 supplies workpieces to and extracts the cut workpieces from themachining apparatus 2, is generated.

When the control unit 4 executes the generated teaching program, aseries of tasks including supplying a workpiece with the robot 3,cutting the workpiece with the machining apparatus 2, and extracting theworkpiece with the robot 3 is automatically performed.

A case where the robot 3 is moved, by moving the dolly 6, to anotherposition, for example, a position where the robot 3 supplies andextracts workpieces to and from another machining apparatus 2, and thenthe robot 3 is moved back to a position where it can supply and extractworkpieces to and from the original machining apparatus 2 will bedescribed.

In this case, as shown in FIG. 5, when the dolly 6, indicated by thesolid line, is not exactly located at the predetermined position of therobot 3, indicated by a chain line, where the original teachingoperation was performed, the robot 3 cannot properly supply and extractworkpieces to and from the machining apparatus 2 even if the teachingprogram is executed.

In this embodiment, even if the dolly 6 is provided so as to be rotatedwith respect to the machining apparatus 2, by capturing an image of thevisual targets 5 with the camera 16, it is possible to automaticallydetect a positional or rotational shift of the dolly 6 to compensate theoperating position in the teaching program. When the positional orrotational shift of the dolly 6 is large, and the visual targets 5cannot be contained in the field of view of the camera 16 with apredetermined robot operation for capturing an image of the visualtargets 5, the robot operation is automatically changed so that thevisual targets 5 are contained in the field of view of the camera 16.

Specifically, as shown in FIG. 7, when the robot 3 is moved (step S1),it is determined whether or not the visual targets 5 on the front sideof the machining apparatus 2 are contained in the field of view of thecamera 16 (step S2). When the visual targets 5 are not contained in thefield of view of the camera 16, in a state in which the robot 3 is notexactly located at the predetermined position and in which the positionof the dolly 6 is shifted, the first arm 11 is rotated about the secondaxis B, and the second arm 12 is rotated about the third axis C (stepS3), causing the robot 3 to automatically operate such that the visualtargets 5 on the front side of the machining apparatus 2 are containedin the field of view of the camera 16.

If the visual targets 5 are not contained in the field of view of thecamera 16 even after the first arm 11 and the second arm 12 are moved,as shown in FIG. 6, the swivel body 10 is automatically rotated aboutthe first axis A such that the fourth axis D of the second arm 12 issubstantially parallel to the front side of the machining apparatus 2 tokeep the visual targets 5 in the field of view of the camera 16. As aresult, the camera 16 attached to the distal end of the second arm 12 isdirected in a direction in which the field of view thereof is orientedtowards the front side of the machining apparatus 2.

Then, the camera 16 is actuated in a state in which the visual targets 5are kept in the field of view of the camera 16, and an image of thevisual targets 5 is captured to acquire an image (step S4).

The image of the visual targets 5 is captured in two directions, atdifferent angles with respect to the normal to the front side of themachining apparatus 2. This makes it possible to detect the coordinatesof the visual targets 5 in a direction parallel to the front side of themachining apparatus 2 from the positions of the visual targets 5 in theimages, and to detect the coordinates of the visual targets 5 in adirection perpendicular to the front side of the machining apparatus 2from the two images acquired in two directions at different angles.

The acquired images are forwarded to the compensating unit and areprocessed in the compensating unit, and the center positions thereof aredetected (step S5). The process from step S2 is repeated until threecenter positions of the visual targets 5 are acquired (step S6).

In the compensating unit, the relative positional relationship betweenthe robot 3 and the machining apparatus 2 is obtained from the acquiredthree center positions (step S7). In the compensating unit, theoperating position in the previously taught teaching program iscompensating on the basis of the obtained relative positionalrelationship (step S8).

Thus, the robot system 1 according to this embodiment provides anadvantage in that, when, for example, the robot 3 is moved, by actuatingthe dolly 6, between different machining apparatuses 2 to be used bythem in a shared manner, even if the dolly 6 is not positioned atexactly the same position with respect to each machining apparatus 2, itis possible to compensate and reuse a previously generated teachingprogram, instead of performing a teaching operation again.

Hence, it is possible to accurately supply and extract workpieces to andfrom each machining apparatus 2, and the robot 3 only needs to befastened with a simple fastener, not with an anchor bolt.

In the robot 3 and the robot system 1 according to this embodiment,because the camera 16 is not attached to the distal end face 15 a of thewrist unit 8, the camera 16 cannot be operated with six degrees offreedom. However, by mounting the camera 16 to the distal end of thesecond arm 12, the camera 16 can be operated with three degrees offreedom in a wide operating area. Because the camera 16 is disposed suchthat the field of view thereof is oriented in a direction parallel to aplane perpendicular to the fourth axis D, even when the dolly 6 isdisposed at an angle to the machining apparatus 2, the fourth axis D canbe arranged parallel to the machining apparatus 2, and thus, it ispossible to easily capture images of the visual targets 5 disposed at aplurality of positions on the front side of the machining apparatus 2.When the dolly 6 is disposed at an angle to the machining apparatus 2,and when images of the visual targets 5 cannot be captured in thisstate, the swivel body 10 is manually or automatically rotated about thefirst axis A, and the images of the visual targets 5 are captured.

As a result, because the camera 16 is not attached to the distal endface 15 a of the wrist unit 8, the dimension of the tool, including thehand, attached to the distal end face 15 a, can be minimized, leading toan advantage in that insertion into the machining apparatus 2 is easy.

Because the camera 16 is not attached to the distal end face 15 a, it ispossible to prevent the camera 16 from taking up the weight capacity. Inother words, it is advantageous in that there is no need to reduce theweight of other tools, such as the hand, due to the weight of the camera16.

Because the wrist unit 8 inserted into the interior of the machiningapparatus 2 is highly likely to be splattered with the cutting fluid, bymounting the camera 16 to the second arm 12, which is away from thewrist unit 8, the risk of the camera 16 being splattered with thecutting fluid is reduced, thus maintaining the soundness of the camera16, which is advantageous.

The camera 16 does not need to be removed every time the tool attachedto the distal end face 15 a is replaced. The calibration for detectingthe position of the camera 16 needs to be performed only once after thecamera 16 is mounted on the second arm 12, and another calibration ofthe camera 16 is unnecessary regardless of the condition of the tool,which is advantageous in that a troublesome start-up task at theworksite becomes unnecessary.

Making the dolly 6 movable is advantageous in that the robot 3 can beeasily moved in accordance with the working status of the machiningapparatus 2. When a human performs a task such as maintenance of themachining apparatus 2, the robot 3 can be easily moved to ensure aworking space, which is advantageous.

A characteristic shape, an originally provided mark, or the like on theouter surface of the machining apparatus 2 can be used as the visualtargets 5. Compared with a case where the visual targets 5 are providedseparately from the machining apparatus 2, the effort and cost forproviding the visual targets can be reduced. It is also possible toprovide a new visual target on the outer surface of the machiningapparatus 2. Compared with a case where the visual targets 5 areprovided on a peripheral device or the like that is not the machiningapparatus 2, the space can be used efficiently, leading to an advantagein that the robot system 1 according to this embodiment can be madecompact.

In the robot system 1 according to this embodiment, although circularmarks have been shown as an example of the visual targets 5, asdescribed above, marks of another shape may be used as long as thefeature points, such as the geometric center position or brightnesscenter position, can be detected, or some characteristic shapes of themachining apparatus 2 may be used as the visual targets 5.

Although an example case where a plurality of visual targets 5 areprovided on the machining apparatus 2 have been shown, instead, it ispossible to provide a single visual target 5 on the machining apparatus2.

Although it is preferable that the visual targets 5 be located on thefront side of the machining apparatus 2 extending in the verticaldirection, instead, the visual targets 5 may be located on a planeextending in the horizontal direction or on an inclined surface.

The visual targets 5 may be disposed inside the machining apparatus 2.

In this embodiment, an example configuration in which the visual targets5 are provided on the outer surface of the machining apparatus 2 hasbeen shown. However, the visual targets 5 do not necessarily have to beprovided on the outer surface of the machining apparatus 2, and thevisual targets 5 only need to be provided at positions where therelative positions with respect to the machining apparatus 2 arepredetermined. For example, the visual targets 5 may be provided on thefloor surface on which the machining apparatus 2 is provided or on aperipheral device or the like whose relative position with respect tothe machining apparatus 2 is predetermined.

Although the camera 16 is attached to the distal end of the second arm12 in this embodiment, the configuration is not limited thereto. Becauseit is preferable that the visual targets 5 be arranged over a wide areafor accurate measurement of the relative positional relationship betweenthe robot 3 and the machining apparatus 2, the distal end of the secondarm 12, which has a wide operating area, is preferred for capturingimages of such visual targets 5.

Instead, the camera 16 may be attached to any of: the middle position orthe base end portion of the second arm 12; the distal end, the middleposition, or the base end portion of the first arm 11: or the swivelbody 10, since the camera 16 attached to any of these positions can bemoved over a predetermined operating area.

The camera 16 may be attached to a portion except for the distal endface 15 a of the wrist unit 8, for example, the first wrist shaft 13 orthe second wrist shaft 14. In this case, the degree of freedom of movingthe camera 16 is increased, and the camera 16 can be moved while theorientation thereof is maintained constant. This reduces the change ofthe relative orientation of the camera 16 with respect to the visualtargets 5, improving the detection accuracy.

When the camera 16 is attached to a position that is substantiallyhorizontal with respect to the floor surface, the camera 16 isconstantly maintained substantially perpendicular to the visual targets5 provided on the outer surface of the machining apparatus 2. Hence, theaccuracy of detecting the visual targets 5 can be improved.

In this embodiment, an example configuration in which the robotoperation is automatically compensated has been described. Instead, auser may compensate the operating position in the teaching program byoperating the robot 3 to cause the camera 16 to capture images of theplurality of visual targets 5 provided on the front side of themachining apparatus 2.

In this embodiment, the robot 3 having the six-axis vertical articulatedmovable unit 7 has been shown as an example. However, the configurationis not limited thereto, and it is possible to employ a verticalarticulated, horizontal articulated, or direct-drive robot having anynumber of axes.

When the robot 3 is a horizontal articulated robot, the camera 16 may beattached to a position substantially vertical to the floor surface. Withthis configuration, when the visual targets 5 are provided on a surfacesubstantially parallel to the floor surface, the camera 16 is constantlyheld substantially vertical to a plane substantially parallel to thefloor surface. Hence, the accuracy of detecting the visual targets 5 canbe improved. The camera 16 may also be attached to a positionsubstantially vertical to the floor surface when the robot 3 is avertical articulated robot.

Although the machining apparatus 2 has been shown as an example worktarget device, the work target device is not limited thereto, and anyother work target device with which the robot 3 works may be employed.

Although the robot 3 having the dolly 6, which is a self-containedmoving truck, has been shown as an example, the configuration is notlimited thereto, and the robot 3 may be of a type in which the base 9having the first axis A is directly fixed to the installation surface,such as the floor surface, after being transported, or a robot 3 loadedon a manually moved hand truck may be employed.

As a result, the following aspect is derived from the above describedembodiment.

An aspect of the present invention provides a robot including: a wristunit that has a tool attached to a distal end face thereof and thatchanges the orientation of the tool, the tool performing work on a worktarget device secured to an installation surface; and a movable unitthat changes the three-dimensional position of the wrist unit. Themovable unit includes an arm that has a longitudinal axis and the wristunit is attached to the distal end thereof. A visual sensor that has afield of view oriented in a direction intersecting the longitudinal axisof the arm is attached to a position closer to the base end than thedistal end face of the wrist unit is.

According to this aspect, the robot is installed with respect to thework target device secured to the installation surface, and the movableunit is operated. By changing the three-dimensional position of thewrist unit attached to the distal end of the arm of the movable unit,thus operating the wrist unit, it is possible to change the orientationof the tool attached to the distal end face and to perform work on thework target device with the tool. Because the field of view of thevisual sensor is moved by the operation of the movable unit and/or thewrist unit, by providing a visual target at a position where therelative positional relationship with respect to the work target deviceis predetermined, it is possible to capture, with the visual sensor, animage of the target, to measure the relative positional relationshipbetween the robot and the work target device, and thus to compensate theoperating position of the robot with respect to the work target device.

In this case, because the visual sensor is not attached to the distalend face of the wrist unit, the degree of freedom of the orientation ofthe visual sensor decreases by at least the degree of freedom of thedistal end face. However, by mounting the visual sensor so as to have afield of view oriented in a direction intersecting the longitudinal axisof the arm, even with the degree of freedom that is lower than thedegree of freedom of the robot, it is possible to move the position ofthe visual sensor over a wide area in accordance with the operation ofthe arm. Thus, when a plurality of visual targets are provided, it ispossible to capture images of the visual targets disposed at differentpositions, whereas when a single visual target is provided, it ispossible to capture images thereof from a plurality of points of view bymoving the visual sensor. The visual sensor is not attached to thedistal end face, the influence on the weight capacity can be reduced,compared with a case where the visual sensor is attached to the distalend face or the tool. It is possible to reduce the space around thetool, and the wrist unit can be easily inserted into a narrow space.When the work target device is a machining apparatus that performscutting, it is possible to make the camera less likely to be splatteredwith cutting fluid even if the wrist unit is inserted to the vicinity ofthe main shaft.

The visual sensor does not need to be removed every time the toolattached to the distal end face is replaced. The calibration fordetecting the position of the camera 16 needs to be performed only onceafter the camera 16 is mounted on the second arm 12, and anothercalibration of the visual sensor is unnecessary regardless of thecondition of the tool, which eliminates the need for a troublesomestart-up task at the worksite.

In the above aspect, the movable unit may include a base that can beprovided at any position with respect to the work target device, aswivel body that is supported so as to be rotatable about a verticalaxis with respect to the base, and the arm that is supported so as to berotatable about one or more horizontal axes with respect to the swivelbody.

With this configuration, it is possible to change the three-dimensionalposition by operating the swivel body and two or more arms of the wristunit. Even when the position with respect to the work target device isroughly set, it is possible to compensate the operating position of therobot by moving the three-dimensional position of the visual sensormounted at a position closer to the base end than the distal end face ofthe wrist unit is by the operation of the movable unit, by capturing animage of the visual target provided at a position where the relativepositional relationship with respect to the work target device ispredetermined, and by measuring the relative positional relationshipbetween the robot and the work target device.

In the above aspect, the arm may include a first arm that is supportedso as to be rotatable about a horizontal axis with respect to the swivelbody, and a second arm that is supported at the distal end of the firstarm so as to be rotatable about a horizontal axis with respect to thefirst arm. The wrist unit is attached to the distal end of the secondarm.

With this configuration, by rotating the swivel body about the verticalaxis with respect to the base, by rotating the first arm about thehorizontal axis with respect to the swivel body, and by rotating thesecond arm about the horizontal axis with respect to the first arm, itis possible to move the wrist unit attached to the distal end of thesecond arm to any three-dimensional position. By providing the visualsensor near the distal end of the second arm, the visual sensor can alsobe moved to any three-dimensional position.

In the above aspect, the movable unit may include a base that can beprovided at any position with respect to the work target device, aswivel body that is supported so as to be rotatable about a verticalaxis with respect to the base, and the arm that is supported so as to berotatable about one or more axes parallel to the axis of the swivelbody.

With this configuration, it is possible to ensure a wide arm-moving areaon the floor surface. This is effective when the visual target isprovided on a plane substantially parallel to the floor surface becausea wide detection area is ensured.

In the above aspect, the robot may further include a truck to which thebase is fixed and that moves the movable unit, the wrist unit, and thevisual sensor with respect to the work target device.

This configuration allows the robot loaded on the truck to move and tobe moved to a different position with respect to the work target deviceby operating the truck.

By making the truck movable, the robot can be easily moved according tothe working status of the work target device. When a human performs atask such as maintenance of the work target device, the robot can beeasily moved to ensure a working space.

In the above aspect, the truck may be a self-contained moving truck.

In the above aspect, the truck may be a hand truck.

In the above aspect, the visual sensor may have a field of view orientedin a direction parallel to a plane substantially perpendicular to thelongitudinal axis of the arm.

With this configuration, by disposing the robot such that the armextends substantially parallel to a surface of the work target device,the surface facing the robot, the direction in which the field of viewof the visual sensor is oriented can be made substantially perpendicularto the work target device, and thus, it is possible to easily move thefield of view to a plurality of positions by operating the movable unit.

In the above aspect, the visual sensor may be provided substantiallyhorizontally.

With this configuration, the visual sensor is constantly maintainedsubstantially perpendicular to the visual target whose relativepositional relationship with respect to the work target device ispredetermined, in particular, the visual target that is provided on aplane perpendicular to an installation surface. Thus, the visual-targetdetection accuracy can be improved.

In the above aspect, the visual sensor may be disposed substantiallyvertically.

With this configuration, when the visual target is provided on a surfacesubstantially parallel to the floor surface, the visual sensor isconstantly maintained substantially vertical to the surfacesubstantially parallel to the floor surface. Hence, the visual-targetdetection accuracy can be improved.

In the above aspect, the robot may be a horizontal articulated robot.

Another aspect of the present invention is a robot system including: awork target device secured to an installation surface; any one of theabove-described robots that performs work on the work target device; anda compensating unit that compensates the operating position of the roboton the basis of the relative positional relationship between the robotand the work target device measured by capturing, with the visualsensor, an image of a visual target provided at a position where therelative positional relationship with respect to the work target deviceis predetermined.

According to this aspect, by providing the robot with respect to thework target device secured to the installation surface, by moving thefield of view of the visual sensor by operating the movable unit and/orthe wrist unit, and by capturing an image of the visual target providedat a position where the relative positional relationship with respect tothe work target device is predetermined, it is possible to measure therelative positional relationship between the robot and the work targetdevice and to compensate, with the compensating unit, the operatingposition of the robot with respect to the work target device.

In the above aspect, the visual target may be provided on an outersurface of the work target device.

With this configuration, a characteristic shape, an originally providedmark, or the like on the outer surface of the work target device can beused as the visual target, and, compared with a case where the visualtarget is provided separately from the work target device, the effortand cost for providing the visual target can be reduced. It is alsopossible to provide a new visual target on the outer surface of the worktarget device. Compared with a case where the visual target is providedon a peripheral device or the like that is not the work target device,the space can be used efficiently, and the system can be made compact.

REFERENCE SIGNS LIST

-   1 robot system-   2 machining apparatus (work target device)-   3 robot-   5 visual target-   6 dolly (truck)-   7 movable unit-   8 wrist unit-   9 base-   10 swivel body-   11 first arm (arm)-   12 second arm (arm)-   15 a distal end face-   16 camera (visual sensor)-   A, B, C axis

1. A robot comprising: a wrist unit that has a tool attached to a distalend face thereof and that changes the orientation of the tool, the toolperforming work on a work target device secured to an installationsurface; and a movable unit that changes the three-dimensional positionof the wrist unit, wherein the movable unit includes an arm that has alongitudinal axis and the wrist unit is attached to the distal endthereof, and a visual sensor that has a field of view oriented in adirection intersecting the longitudinal axis of the arm is attached to aposition closer to the base end than the distal end face of the wristunit is.
 2. The robot according to claim 1, wherein the movable unitincludes a base that can be provided at any position with respect to thework target device, a swivel body that is supported so as to berotatable about a vertical axis with respect to the base, and the armthat is supported so as to be rotatable about one or more horizontalaxes with respect to the swivel body.
 3. The robot according to claim 2,wherein the arm includes a first arm that is supported so as to berotatable about a horizontal axis with respect to the swivel body, and asecond arm that is supported at the distal end of the first arm so as tobe rotatable about a horizontal axis with respect to the first arm, andthe wrist unit is attached to the distal end of the second arm.
 4. Therobot according to claim 1, wherein the movable unit includes a basethat can be provided at any position with respect to the work targetdevice, a swivel body that is supported so as to be rotatable about avertical axis with respect to the base, and the arm that is supported soas to be rotatable about one or more axes parallel to the axis of theswivel body.
 5. The robot according to claim 2, further comprising atruck to which the base is fixed and that moves the movable unit, thewrist unit, and the visual sensor with respect to the work targetdevice.
 6. The robot according to claim 5, wherein the truck is aself-contained moving truck.
 7. The robot according to claim 5, whereinthe truck is a hand truck.
 8. The robot according to claim 1, whereinthe visual sensor has a field of view oriented in a direction parallelto a plane substantially perpendicular to the longitudinal axis of thearm.
 9. The robot according to claim 8, wherein the visual sensor isprovided substantially horizontally.
 10. The robot according to claim 8,wherein the visual sensor is disposed substantially vertically.
 11. Therobot according to claim 10, wherein the robot is a horizontalarticulated robot.
 12. A robot system comprising: a work target devicesecured to an installation surface; the robot according to claim 1 thatperforms work on the work target device; and a compensating unit thatcompensates the operating position of the robot on the basis of therelative positional relationship between the robot and the work targetdevice measured by capturing, with the visual sensor, an image of avisual target provided at a position where the relative positionalrelationship with respect to the work target device is predetermined.13. The robot system according to claim 12, wherein the visual target isprovided on an outer surface of the work target device.